summaryrefslogtreecommitdiffstats
path: root/src/core/arm/nce/patch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/arm/nce/patch.h')
-rw-r--r--src/core/arm/nce/patch.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/core/arm/nce/patch.h b/src/core/arm/nce/patch.h
index b727d4e48..dcce1bfc6 100644
--- a/src/core/arm/nce/patch.h
+++ b/src/core/arm/nce/patch.h
@@ -7,23 +7,17 @@
#include <unordered_map>
#include <vector>
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wshorten-64-to-32"
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wshorten-64-to-32"
#include <oaknut/code_block.hpp>
#include <oaknut/oaknut.hpp>
-#pragma clang diagnostic pop
+#pragma GCC diagnostic pop
#include "common/common_types.h"
#include "core/hle/kernel/code_set.h"
#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/kernel/physical_memory.h"
-#include <signal.h>
-
-namespace Core {
-struct GuestContext;
-}
-
namespace Core::NCE {
enum class PatchMode : u32 {
@@ -45,9 +39,9 @@ public:
const Kernel::CodeSet::Segment& code);
void RelocateAndCopy(Common::ProcessAddress load_base, const Kernel::CodeSet::Segment& code,
Kernel::PhysicalMemory& program_image, EntryTrampolines* out_trampolines);
- size_t SectionSize() const noexcept;
+ size_t GetSectionSize() const noexcept;
- [[nodiscard]] PatchMode Mode() const noexcept {
+ [[nodiscard]] PatchMode GetPatchMode() const noexcept {
return mode;
}